package org.openea.eap.module.obpm.model.custchart;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import org.hibernate.validator.constraints.NotEmpty;
import org.openbpm.base.core.model.BaseModel;

@lombok.Data
@TableName(value = "form_cust_chart", autoResultMap = true)
public class FormCustChart extends BaseModel {


    @NotEmpty
    @TableField("key_")
    private String key;
    @TableField("name_")
    private String name;
    @TableField("desc_")
    private String desc;
    //图表类型：1-折线图，2-饼图，3-柱状图，4-雷达图，5-树形图
    @TableField("style_")
    private int style;

    //数据库别名
    @NotEmpty
    @TableField("ds_key_")
    private String dsKey;
    @NotEmpty
    @TableField("ds_name_")
    private String dsName;
    //数据类型 table-表，sql-自定义sql
    @NotEmpty
    @TableField("obj_type_")
    private String objType;
    @NotEmpty
    @TableField("obj_name_")
    private String objName;
    //定制SQL
    @TableField("diy_sql_")
    private String diySql;

    //图表宽度
    @TableField("width_")
    private int width;
    //图表高度
    @TableField("height_")
    private int height;

    //图表配置json
    @TableField("conf_json_")
    private String confJson;
    //x轴字段
    @TableField("xaxis_fileds_json_")
    private String xaxisFieldsJson;
    //y轴单位
    @TableField("yaxis_unit_")
    private String yaxisUnit;


    //显示字段json
    @TableField("display_fields_json_")
    private String displayFieldsJson;
    //条件字段json
    @TableField("condition_fields_json_")
    private String conditionFieldsJson;
    //返回字段json
    @TableField("return_fields_json_")
    private String returnFieldsJson;
    //排序字段json
    @TableField("sort_fields_json_")
    private String sortFieldsJson;

}
